Optimal. Leaf size=69 \[ -\frac{\cot ^3(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (3-n p)}-\frac{\cot (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (1-n p)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.116107, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3659, 2591, 14} \[ -\frac{\cot ^3(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (3-n p)}-\frac{\cot (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (1-n p)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3659
Rule 2591
Rule 14
Rubi steps
\begin{align*} \int \csc ^4(e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx &=\left ((c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \int \csc ^4(e+f x) (c \tan (e+f x))^{n p} \, dx\\ &=\frac{\left (c (c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \operatorname{Subst}\left (\int x^{-4+n p} \left (c^2+x^2\right ) \, dx,x,c \tan (e+f x)\right )}{f}\\ &=\frac{\left (c (c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \operatorname{Subst}\left (\int \left (c^2 x^{-4+n p}+x^{-2+n p}\right ) \, dx,x,c \tan (e+f x)\right )}{f}\\ &=-\frac{\cot (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (1-n p)}-\frac{\cot ^3(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (3-n p)}\\ \end{align*}
Mathematica [A] time = 0.15638, size = 59, normalized size = 0.86 \[ \frac{\cot (e+f x) \csc ^2(e+f x) (\cos (2 (e+f x))+n p-2) \left (b (c \tan (e+f x))^n\right )^p}{f (n p-3) (n p-1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 180., size = 0, normalized size = 0. \begin{align*} \int \left ( \csc \left ( fx+e \right ) \right ) ^{4} \left ( b \left ( c\tan \left ( fx+e \right ) \right ) ^{n} \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.24483, size = 99, normalized size = 1.43 \begin{align*} \frac{\frac{b^{p}{\left (c^{n}\right )}^{p}{\left (\tan \left (f x + e\right )^{n}\right )}^{p}}{{\left (n p - 1\right )} \tan \left (f x + e\right )} + \frac{b^{p}{\left (c^{n}\right )}^{p}{\left (\tan \left (f x + e\right )^{n}\right )}^{p}}{{\left (n p - 3\right )} \tan \left (f x + e\right )^{3}}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.08657, size = 250, normalized size = 3.62 \begin{align*} \frac{{\left (2 \, \cos \left (f x + e\right )^{3} +{\left (n p - 3\right )} \cos \left (f x + e\right )\right )} e^{\left (n p \log \left (\frac{c \sin \left (f x + e\right )}{\cos \left (f x + e\right )}\right ) + p \log \left (b\right )\right )}}{{\left (f n^{2} p^{2} - 4 \, f n p -{\left (f n^{2} p^{2} - 4 \, f n p + 3 \, f\right )} \cos \left (f x + e\right )^{2} + 3 \, f\right )} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (\left (c \tan \left (f x + e\right )\right )^{n} b\right )^{p} \csc \left (f x + e\right )^{4}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]